// APi
let app = getApp()

// 删除照片
export const deleteImgApi = (filename) => {
  return (
    dd.httpRequest({
      url: app.baseUrl + '/DingDingSystem/deleteFile',
      method: 'POST',
      headers: {
        "Content-Type": "application/json"
      },
      data: JSON.stringify({
        filename: filename
      }),
      dataType: 'text'
    })
  )
}

// 删除视频
export const deleteVideoApi = (filename) => {
  return (
    dd.httpRequest({
      url: app.baseUrl + '/DingDingSystem/deleteVideo',
      method: 'POST',
      headers: {
        "Content-Type": "application/json"
      },
      data: JSON.stringify({
        filename: filename
      }),
      dataType: 'text'
    })
  )
}
